package cn.wei.reallyEnjoy.utils;

/**
 * 配置各个页面的联网地址
 */
public class Constants {
    public static final String BASE_URL = "http://192.168.1.104:8081/";
//    public static final String BASE_URL = "http://192.168.188.206:8081/";
    public static final String HOME_URL_INDEX = BASE_URL+"/index/indexInfo";
    public static final String LOGIN_URL = BASE_URL+"/user/login";
    public static final String REGISTER_URL = BASE_URL+"/user/register";
    public static final String DIARY_COMMENT_URL = BASE_URL+"/comments/getCommentsByDiaryId/";
    public static final String USER_COMMENT_URL = BASE_URL+"/comments/userComment";
    //判断用户是否收藏
    public static final String USER_IS_COLLECTION = BASE_URL+"/collection/isCollection/";//{diaryId}/{userId}
    //日记收藏、取消
    public static final String USER_COLLECTION = BASE_URL+"/collection/UserCollectionOrCancel/";//{diaryId}/{userId}

    //我的日记
    public static final String USER_DIARY = BASE_URL+"/diary/getDiaryByUserId/";//{userId}
    //我的收藏
    public static final String MY_COLLECTION_URL = BASE_URL+"/diary/CollectionByUid/";//{userId}
    //删除我的日记
    public static final String DELETE_MY_DIARY_URL = BASE_URL+"/diary/deleteDiaryByUidAndDiaryId/";//{userId}/{diaryId}
    //文件上传
    public static final String FILE_UPLOAD_URL = BASE_URL+"/file/upload";

    //写日记
    public static final String WRITE_DIARY_URL = BASE_URL+"/diary/addDiary";

    //搜索日记
    public static final String SEARCH_DIARY_URL = BASE_URL+"/diary/searchDiaryByKeyWord/";//{keyWord}


    public static final String IMG_URL = BASE_URL;




}
